//
//  CTCertificationViewController.m
//  ConstellationTalk_0.1
//
//  Created by riley on 15/5/28.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import "CTCertificationViewController.h"

//view
#import "CTCertificationView.h"

//function
#import "CTDebugManager.h"
#import "MobClick.h"

@interface CTCertificationViewController ()<CTLogCertificationViewDelegate>
{
    CTCertificationView * certificationView;
}
@end

@implementation CTCertificationViewController

- (void)dealloc
{
    [certificationView removeFromSuperview];
    certificationView = nil;
   
    [CTDebugManager showDebugLogInfo:@"dealloc : CTCertificationViewController Is Removed!!!"];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    //统计
    [MobClick beginLogPageView:@"CTCertificationViewController"];
}
-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    
    //统计
    [MobClick endLogPageView:@"CTCertificationViewController"];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
    certificationView = [[CTCertificationView alloc] init];
    certificationView.delegate = self;
    [self.view addSubview:certificationView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - certification view delegate -

//获取输入手机号
- (void)certificationPhoneTextFieldText:(NSString *)text withView:(CTCertificationView *) view
{
    
}
//获取输入昵称
- (void)certificationNameTextFieldText:(NSString *)text withView:(CTCertificationView *) view
{
    
}
//输入Reason
- (void)certificationReasonTextFieldText:(NSString *)text withView:(CTCertificationView *) view
{
    
}
//登陆事件回调
- (void)certificationSubmitButton:(CTCertificationView *) view
{
    
}
//返回按钮事件回调
- (void)certificationBackButton:(CTCertificationView *) view
{
    [self.navigationController popViewControllerAnimated:YES];
}
//添加照片
- (void)certificationAddImageBtnAction:(CTCertificationView *) view
{
    
}

@end
